package ru.evga.gwt.lib.common.client.ui.editor;

import java.util.List;

import com.google.gwt.editor.client.Editor;
import com.google.gwt.editor.client.EditorError;
import com.google.gwt.user.client.ui.IsWidget;

import ru.evga.gwt.lib.common.client.domain.BaseEntityDto;


public interface IEntityEditor<T extends BaseEntityDto> extends Editor<T> , IsWidget
{
    /**
     * Shows errors
     * @param errors
     */
    void showError(List<EditorError> errors);
    
    /**
     * Error happened in service
     * @param serviceError
     */
    void onServiceError(String serviceError);
    
}
